import http from "@/server/http";

export const queryArticleList = (params) => {
    return http({
        url: "/admin/article/list/index",
        method: "POST",
        data: params,
    })
}

//tab类型列表
export const queryArticleType = (params) => {
    return http({
        url: "/admin/article/list/type_list",
        method: "POST",
        data: params,
    })
}

//文章收藏
export const toCollect = (params) => {
    return http({
        url: "/admin/article/list/collect",
        method: "POST",
        data: params,
    })
}

//文章取消收藏 
export const toCancelCollect = (params) => {
    return http({
        url: "/admin/article/list/cancel_collect",
        method: "POST",
        data: params,
    })
}

//推荐文章 
export const queryRecommend = (params) => {
    return http({
        url: "/admin/article/list/recommend",
        method: "POST",
        data: params,
    })
}

//文章详情 
export const queryArticleInfo = (params) => {
    return http({
        url: "/admin/article/list/info",
        method: "POST",
        data: params,
    })
}